package com.jyh.blog.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * (Album)实体类
 *
 * @author jyh
 * @since 2023-02-12 15:37:28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Album implements Serializable {
    private static final long serialVersionUID = -69967473044511122L;
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 相册名
     */
    private String name;
    /**
     * 相册描述
     */
    private String description;
    /**
     * 相册封面
     */
    private String cover;
    /**
     * 状态值 1公开 2私密
     */
    private Integer status;

    /**
     * 是否删除 0否 1是
     */
    private Integer is_delete;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;


}

